package com.axxc.jpa.pattendegign.filter;

import java.util.List;

/**
 * @ClassName AndCriteria
 * @Description //TODO and
 * @author xxc
 * @data 2018年9月8日下午10:53:11
 * @see {@link http://gitee.com/biuabiu/ }
 */
public class AndCriteria implements CriteriaFilter {

	private CriteriaFilter thisCriteria;
	private CriteriaFilter otherCriteria;

	public AndCriteria(CriteriaFilter thisCriteria, CriteriaFilter otherCriteria) {
		super();
		this.thisCriteria = thisCriteria;
		this.otherCriteria = otherCriteria;
	}

	@Override
	public List<Person> doFiler(List<Person> personLists) {
		return otherCriteria.doFiler(thisCriteria.doFiler(personLists));
	}

}
